package com.yfp.device.service;

import com.yfp.device.domain.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

/**
* @author admin
* @description 针对表【order_detail】的数据库操作Service
* @createDate 2024-06-18 11:57:05
*/
public interface OrderDetailService extends IService<OrderDetail> {

    /**
     * 批量修改
     * @param orderDetails
     */
    void batchUpdate(List<OrderDetail> orderDetails);

    /**
     * 详情id批量查询详情列表
     * @param orderDetailIds
     * @return
     */
    List<OrderDetail> findByDetailIds(List<String> orderDetailIds);

    void updateDetails(ArrayList<OrderDetail> ods);

    void updateOrderDetail(OrderDetail orderDetail);

    List<OrderDetail> getByOrderId(String orderId);

    void updateOrderDetail(List<OrderDetail> detailList);

    /**
     * 根据订单号赋值排队时间
     * @param orderId
     */
    void awaitQueueTime(String orderId);
}
